package com.yc.service;

import com.yc.entity.Wallet;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

public interface WalletService extends IService<Wallet> {

    @Transactional
    int spend(Wallet wallet, Double money);

    int refund(Wallet wallet, Double money);
}
